home *** CD-ROM | disk | FTP | other *** search
- Path: news.delphi.com!usenet
- From: JGUILLORY@delphi.com
- Newsgroups: comp.lang.c++
- Subject: setting line/col??? looked and looked...
- Date: 9 Mar 1996 17:19:00 GMT
- Organization: Delphi Internet Services Corporation
- Message-ID: <4hsei4$rkk@news2.delphi.com>
- References: <4erdja$eru@senator-bedfellow.MIT.EDU>
- NNTP-Posting-Host: bos1g.delphi.com
- X-NewsReader: Rainbow V 1.20.0 for Delphi
-
-
- Quoting tcs from a message in comp.lang.c++
- tc>I have searched my book on C++, and can't find a very very very
- tc>simple thing... how to put characters on the screen at a
- tc>specific line/column. I will be compiling under Linux, with g++,
- tc>so stupid <graph.h> doesn't help me at all.
- tc>Please take pity on a poor miserable lost soul:
- tc>tcs@bates.mit.edu
-
- That's why I hate some of the cheaper 'C' and 'C++' compilers,
- C did not define any standard function for cursor positioning,
- therefore, your C++ book (if it's an ANSI C++ book) had no
- information on cursor positioning. Some compilers (such as
- Power C by MIX) does not support *ANY* form of cursor positioning.
- I'm not familiar enough with g++ to know if it supports it or not,
- but check for a conio.h file... That's generally the direct screen
- write file. Worst case scenery, you can try treating it like a
- DOS based system, and either try VT-100 codes (it depends on how you
- setup your termcap file I believe, VT-100 and ANSI are the most
- common, in which case, either would use codes like
- ESC[row;columnH to position the cursor (where row is the row, and
- column is the column.... (ESC is chr(27) ). The other alternative
- (recommended against, due to the fact that Linux can load drivers
- for other video cards, and you may have someone using your program
- on a system they call in via terminal or modem.... In which case,
- the following method wouldn't work: Direct Screen Writes. On a
- Linux/Unix based system, this is almost always out of the question.
- Due to the fact that you can run several programs at once, and
- run a program over the serial port, the screen may be at a location
- other than 0B0000H, 0B8000H, or NOT in memory (so to speak, in
- buffers, which is memory, but then again, could be in virtual
- ram...)
-
- `[0;1;34mJohn H. Guillory
- `[33mLoving the Lord in '96 `[34mJGuillory@Delphi.Com
-
- WYSIWYTYWG.....What You See Is What You Thought You Would Get.
-
-
-